/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package dao;


import dominio.Disciplinas;
import java.util.Set;

/**
 *
 * @author jair
 */
public class DisciplinasDAO extends GenericDAO {

     public int inserirDisciplinas(Disciplinas disciplinas){
        salvar(disciplinas);
        return disciplinas.getId();
    }
    
    public void apagarDisciplinas(Disciplinas disciplinas){
        remover(disciplinas);
    }
    
    public void atualizarDisciplinas(Disciplinas disciplinas){
        atualizar(disciplinas);
    }
    
    public Set<Disciplinas> getDisciplinass(){
        return getLista(Disciplinas.class,"select m from Disciplinas m");
    }

}
